package com.cph.contentcenter.feignClinet;

import com.cph.contentcenter.domain.dto.user.UserDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @ClassName UserCenterFeignClient
 * @Description TODO
 * @Author cph
 * @Date 2020/9/29 15:04
 * @Version 1.0
 */
@FeignClient(name = "user-center")
public interface UserCenterFeignClient {

    @GetMapping("/users/{id}")
    UserDto findById (@PathVariable Integer id);
}

